package com.znsd.stu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.znsd.entitys.ShiftDuty;
import com.znsd.stu.dao.Cwj_ShiftDutyDao;
import com.znsd.stu.service.Cwj_ShiftDutyService;

@Service
public class Cwj_ShiftDutyServiceImpl implements Cwj_ShiftDutyService{
	@Autowired
	private Cwj_ShiftDutyDao shift;
	
	@Override
	public List<ShiftDuty> getShiftByClass(Integer classId) {
		// TODO Auto-generated method stub
		return shift.getShiftByClass(classId);
	}

	@Override
	public void update(Integer s_id, Integer s_state, Integer teacherid) {
		// TODO Auto-generated method stub
		shift.update(s_id, s_state, teacherid);
	}

	@Override
	public ShiftDuty getById(Integer sid) {
		// TODO Auto-generated method stub
		return shift.getById(sid);
	}

}
